
#include<stdio.h>
#include<math.h>
int main(void)
{
    int n = 0;
    float rate = 0, capital = 0;
    double deposite;
    printf("Input n,rate,captal:");
    scanf("%d,%f,%f", &n, &rate, &capital);
    deposite = pow(1 + rate, n) * capital;
    printf("deposite=%f\n", deposite);
    return 0;
}
